<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>.
 *
 **/

 -->
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:geo="http://a9.com/-/opensearch/extensions/geo/1.0/"
  xmlns:time="http://a9.com/-/opensearch/extensions/time/1.0/" xmlns:fs="http://a9.com/-/opensearch/extensions/federation/1.0/"
  xmlns:ddf="urn:ddf:catalog:opensearch:extensions">
  <ShortName>DDF</ShortName>
  <Description>Query the Metadata Catalog via OpenSearch specifications for query searches</Description>
  <Tags>ddf opensearch query</Tags>
  <Contact>bradh@frogmouth.net</Contact>

  <Url type="application/atom+xml"
    indexOffset="1"
    template="http://192.168.40.180:8181/services/catalog/query?q={searchTerms?}&amp;count={count?}&amp;mt={fs:maxTimeout?}&amp;lat={geo:lat?}&amp;lon={geo:lon?}&amp;radius={geo:radius?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;dtoffset={:offset?}&amp;selector={ddf:selector?}&amp;sort={fs:sort?}&amp;format=atom&amp;type={type?}&amp;version={version?}" />
  <Url type="application/atom+xml"
    indexOffset="1"
    template="http://192.168.40.180:8181/services/catalog/query?q={searchTerms?}&amp;count={count?}&amp;mt={fs:maxTimeout?}&amp;bbox={geo:box?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;dtoffset={ddf:offset?}&amp;selector={ddf:selector?}&amp;sort={fs:sort?}&amp;format=atom&amp;type={type?}&amp;version={version?}" />
  <Url type="application/atom+xml"
    indexOffset="1"
    template="http://192.168.40.180:8181/services/catalog/query?q={searchTerms?}&amp;count={count?}&amp;mt={fs:maxTimeout?}&amp;polygon={geo:polygon?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;dtoffset={ddf:offset?}&amp;selector={ddf:selector?}&amp;sort={fs:sort?}&amp;format=atom&amp;type={type?}&amp;version={version?}" />
  <Url type="application/atom+xml"
    indexOffset="1"
    template="http://192.168.40.180:8181/services/catalog/query?q={searchTerms?}&amp;count={count?}&amp;mt={fs:maxTimeout?}&amp;geometry={geo:geometry?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;dtoffset={ddf:offset?}&amp;selector={ddf:selector?}&amp;sort={fs:sort?}&amp;format=atom&amp;type={type?}&amp;version={version?}" />
  <Url type="text/html"
    indexOffset="1"
    template="http://192.168.40.180:8181/services/catalog/query?q={searchTerms?}&amp;count={count?}&amp;mt={fs:maxTimeout?}&amp;lat={geo:lat?}&amp;lon={geo:lon?}&amp;radius={geo:radius?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;dtoffset={ddf:offset?}&amp;selector={ddf:selector?}&amp;sort={fs:sort?}&amp;format=html&amp;type={type?}&amp;version={version?}" />
   <!--
     (q) searchTerms - Space delimited list of search terms.

	 (mr) maxResults - Maximum # of results to return.
        If count is also specified, the count value will take
        precedence over the maxResults value
	    (default: mr=1000,mr<=1000).

     (src) fs:routeTo - Defines a comma delimited list of sites to query.

     (mt) maxTimeout - Maximum timeout (msec) for query to respond
        (default: mt=30000).

     (start) startIndex - Index of first result to return. Integer > 0
        (default: start=1).

     (count) count - Number of results to return (default: count=10).

     (geometry) geometry - WKT Geometries (Support POINT and POLYGON).

     (bbox) bbox - Comma delimited list of lat/lon (deg) bounding box coordinates
        (geo format: geo:bbox ~ West,South,East,North).

     (polygon) polygon - Comma delimited list of lat/lon (deg) pairs, in clockwise
        order around the polygon, with the last point being the same as the first
        in order to close the polygon.

     (lat) lat - Latitude in decimal degrees (typical GPS receiver WGS84 coordinates).

     (lon) lon - Longitude in decimal degrees (typical GPS receiver WGS84 coordinates).

     (radius) radius - The radius (m) parameter, used with the lat and lon parameters,
        specifies the search distance from this point (default: radius=5000).

     (dtStart) dateStart - Specifies the beginning of the time slice of the search
        (RFC-3339 - Date and Time format, i.e. YYYY-MM-DDTHH:mm:ssZ). Default value of
        "1970-01-01T00:00:00Z" is used when dtend is indicated but dtstart is not specified

     (dtEnd) dateEnd - Specifies the ending of the time slice of the search (RFC-3339
        - Date and Time format, i.e. YYYY-MM-DDTHH:mm:ssZ). Current GMT date/time is
        used when dtstart is specified but not dtend.

     (dtOffset) dateOffset - Specifies an offset, backwards from the current time, to
	    search on the modified time field for entries. Defined in milliseconds.

     (sort) sort - Specifies sort by field as sort=<sbfield>:<sborder>, where <sbfield>
        may be 'date' or 'relevance' (default is 'relevance'). The conditional
        param <sborder> is optional but has a value of 'asc' or 'desc' (default is 'desc').
        When <sbfield> is 'relevance', <sborder> must be 'desc'.

     (format) format - Defines the format that the return type should be in. (example:atom, html)

     (selector) selector - Defines a comma delimited list of XPath selectors to narrow the query.

     (type) type - Specifies the type of data to search for. (example: nitf)

     (version) version - Species the versions in a comma delimited list.
   -->
  <LongName>DDF</LongName>

  <Query role="example" searchTerms="iraq" />
  <Developer>DDF Team</Developer>
  <SyndicationRight>open</SyndicationRight>
  <AdultContent>false</AdultContent>
  <Language>en-us</Language>
  <OutputEncoding>UTF-8</OutputEncoding>

  <InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>